/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wxrobot.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 任务宝活动Entity
 * @author sam
 * @version 2018-08-15
 */
@Table(name="tb_task_activity", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="user_code", attrName="userCode", label="平台商户编码"),
		@Column(name="robot_weixin_user_name", attrName="robotWeixinUserName", label="机器人微信用户名"),
		@Column(name="name", attrName="name", label="活动名称", queryType=QueryType.LIKE),
		@Column(name="poster", attrName="poster", label="海报图片路径"),
		@Column(name="robot_poster", attrName="robotPoster", label="机器人专属海报"),
		@Column(name="prefix_code", attrName="prefixCode", label="邀请码前缀"),
		@Column(name="friends_text", attrName="friendsText", label="好友应答文本"),
		@Column(name="friends_pic", attrName="friendsPic", label="好友应答图片"),
		@Column(name="friends_voice", attrName="friendsVoice", label="好友应答语音"),
		@Column(name="friends_video", attrName="friendsVideo", label="好友应答视频"),
		@Column(name="friends_group_invitation", attrName="friendsGroupInvitation", label="好友应答群邀请"),
		@Column(name="right_code_text", attrName="rightCodeText", label="正确邀请码应答文本"),
		@Column(name="right_code_pic", attrName="rightCodePic", label="正确邀请码应答图片"),
		@Column(name="helps", attrName="helps", label="助力人数"),
		@Column(name="right_code_voice", attrName="rightCodeVoice", label="正确邀请码应答语音"),
		@Column(name="right_code_video", attrName="rightCodeVideo", label="正确邀请码应答视频"),
		@Column(name="right_code_group_invitation", attrName="rightCodeGroupInvitation", label="正确邀请码应答群邀请"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="error_code_text", attrName="errorCodeText", label="错误邀请码应答文本"),
		@Column(name="error_code_pic", attrName="errorCodePic", label="错误邀请码应答图片"),
		@Column(name="error_code_voice", attrName="errorCodeVoice", label="错误邀请码应答语音"),
		@Column(name="error_code_video", attrName="errorCodeVideo", label="错误邀请码应答视频"),
		@Column(name="error_code_group_invitation", attrName="errorCodeGroupInvitation", label="错误邀请码应答群邀请"),
		@Column(name="helps_arrival_text", attrName="helpsArrivalText", label="助力成功应答文本"),
		@Column(name="helps_arrival_pic", attrName="helpsArrivalPic", label="助力成功应答图片"),
		@Column(name="helps_arrival_voice", attrName="helpsArrivalVoice", label="助力成功应答语音"),
		@Column(name="helps_arrival_video", attrName="helpsArrivalVideo", label="助力成功应答视频"),
		@Column(name="helps_arrival_group_invitation", attrName="helpsArrivalGroupInvitation", label="助力成功应答群邀请"),
	}, orderBy="a.update_date DESC"
)
public class TaskActivity extends DataEntity<TaskActivity> {
	
	private static final long serialVersionUID = 1L;
	private String userCode;		// 平台商户编码
	private String robotWeixinUserName;		// 机器人微信用户名
	private String name;		// 活动名称
	private String poster;		// 海报图片路径
	private String robotPoster;		// 机器人专属海报
	private String prefixCode;		// 邀请码前缀
	private String friendsText;		// 好友应答文本
	private String friendsPic;		// 好友应答图片
	private String friendsVoice;		// 好友应答语音
	private String friendsVideo;		// 好友应答视频
	private String friendsGroupInvitation;		// 好友应答群邀请
	private String rightCodeText;		// 正确邀请码应答文本
	private String rightCodePic;		// 正确邀请码应答图片
	private Integer helps;		// 助力人数
	private String rightCodeVoice;		// 正确邀请码应答语音
	private String rightCodeVideo;		// 正确邀请码应答视频
	private String rightCodeGroupInvitation;		// 正确邀请码应答群邀请
	private String errorCodeText;		// 错误邀请码应答文本
	private String errorCodePic;		// 错误邀请码应答图片
	private String errorCodeVoice;		// 错误邀请码应答语音
	private String errorCodeVideo;		// 错误邀请码应答视频
	private String errorCodeGroupInvitation;		// 错误邀请码应答群邀请
	private String helpsArrivalText;		// 助力成功应答文本
	private String helpsArrivalPic;		// 助力成功应答图片
	private String helpsArrivalVoice;		// 助力成功应答语音
	private String helpsArrivalVideo;		// 助力成功应答视频
	private String helpsArrivalGroupInvitation;		// 助力成功应答群邀请
	
	public TaskActivity() {
		this(null);
	}

	public TaskActivity(String id){
		super(id);
	}
	
	//@NotBlank(message="平台商户编码不能为空")
	@Length(min=0, max=100, message="平台商户编码长度不能超过 100 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	@Length(min=0, max=100, message="机器人微信用户名长度不能超过 100 个字符")
	public String getRobotWeixinUserName() {
		return robotWeixinUserName;
	}

	public void setRobotWeixinUserName(String robotWeixinUserName) {
		this.robotWeixinUserName = robotWeixinUserName;
	}
	
	@NotBlank(message="活动名称不能为空")
	@Length(min=0, max=200, message="活动名称长度不能超过 200 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@NotBlank(message="海报图片路径不能为空")
	@Length(min=0, max=500, message="海报图片路径长度不能超过 500 个字符")
	public String getPoster() {
		return poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}
	
	@Length(min=0, max=500, message="机器人专属海报长度不能超过 500 个字符")
	public String getRobotPoster() {
		return robotPoster;
	}

	public void setRobotPoster(String robotPoster) {
		this.robotPoster = robotPoster;
	}
	
	@Length(min=0, max=4, message="邀请码前缀长度不能超过 4 个字符")
	public String getPrefixCode() {
		return prefixCode;
	}

	public void setPrefixCode(String prefixCode) {
		this.prefixCode = prefixCode;
	}
	
	@Length(min=0, max=1000, message="好友应答文本长度不能超过 1000 个字符")
	public String getFriendsText() {
		return friendsText;
	}

	public void setFriendsText(String friendsText) {
		this.friendsText = friendsText;
	}
	
	@Length(min=0, max=500, message="好友应答图片长度不能超过 500 个字符")
	public String getFriendsPic() {
		return friendsPic;
	}

	public void setFriendsPic(String friendsPic) {
		this.friendsPic = friendsPic;
	}
	
	@Length(min=0, max=500, message="好友应答语音长度不能超过 500 个字符")
	public String getFriendsVoice() {
		return friendsVoice;
	}

	public void setFriendsVoice(String friendsVoice) {
		this.friendsVoice = friendsVoice;
	}
	
	@Length(min=0, max=500, message="好友应答视频长度不能超过 500 个字符")
	public String getFriendsVideo() {
		return friendsVideo;
	}

	public void setFriendsVideo(String friendsVideo) {
		this.friendsVideo = friendsVideo;
	}
	
	@Length(min=0, max=500, message="好友应答群邀请长度不能超过 500 个字符")
	public String getFriendsGroupInvitation() {
		return friendsGroupInvitation;
	}

	public void setFriendsGroupInvitation(String friendsGroupInvitation) {
		this.friendsGroupInvitation = friendsGroupInvitation;
	}
	
	@Length(min=0, max=1000, message="正确邀请码应答文本长度不能超过 1000 个字符")
	public String getRightCodeText() {
		return rightCodeText;
	}

	public void setRightCodeText(String rightCodeText) {
		this.rightCodeText = rightCodeText;
	}
	
	@Length(min=0, max=500, message="正确邀请码应答图片长度不能超过 500 个字符")
	public String getRightCodePic() {
		return rightCodePic;
	}

	public void setRightCodePic(String rightCodePic) {
		this.rightCodePic = rightCodePic;
	}
	
	public Integer getHelps() {
		return helps;
	}

	public void setHelps(Integer helps) {
		this.helps = helps;
	}
	
	@Length(min=0, max=500, message="正确邀请码应答语音长度不能超过 500 个字符")
	public String getRightCodeVoice() {
		return rightCodeVoice;
	}

	public void setRightCodeVoice(String rightCodeVoice) {
		this.rightCodeVoice = rightCodeVoice;
	}
	
	@Length(min=0, max=500, message="正确邀请码应答视频长度不能超过 500 个字符")
	public String getRightCodeVideo() {
		return rightCodeVideo;
	}

	public void setRightCodeVideo(String rightCodeVideo) {
		this.rightCodeVideo = rightCodeVideo;
	}
	
	@Length(min=0, max=500, message="正确邀请码应答群邀请长度不能超过 500 个字符")
	public String getRightCodeGroupInvitation() {
		return rightCodeGroupInvitation;
	}

	public void setRightCodeGroupInvitation(String rightCodeGroupInvitation) {
		this.rightCodeGroupInvitation = rightCodeGroupInvitation;
	}
	
	@Length(min=0, max=1000, message="错误邀请码应答文本长度不能超过 1000 个字符")
	public String getErrorCodeText() {
		return errorCodeText;
	}

	public void setErrorCodeText(String errorCodeText) {
		this.errorCodeText = errorCodeText;
	}
	
	@Length(min=0, max=500, message="错误邀请码应答图片长度不能超过 500 个字符")
	public String getErrorCodePic() {
		return errorCodePic;
	}

	public void setErrorCodePic(String errorCodePic) {
		this.errorCodePic = errorCodePic;
	}
	
	@Length(min=0, max=500, message="错误邀请码应答语音长度不能超过 500 个字符")
	public String getErrorCodeVoice() {
		return errorCodeVoice;
	}

	public void setErrorCodeVoice(String errorCodeVoice) {
		this.errorCodeVoice = errorCodeVoice;
	}
	
	@Length(min=0, max=500, message="错误邀请码应答视频长度不能超过 500 个字符")
	public String getErrorCodeVideo() {
		return errorCodeVideo;
	}

	public void setErrorCodeVideo(String errorCodeVideo) {
		this.errorCodeVideo = errorCodeVideo;
	}
	
	@Length(min=0, max=500, message="错误邀请码应答群邀请长度不能超过 500 个字符")
	public String getErrorCodeGroupInvitation() {
		return errorCodeGroupInvitation;
	}

	public void setErrorCodeGroupInvitation(String errorCodeGroupInvitation) {
		this.errorCodeGroupInvitation = errorCodeGroupInvitation;
	}
	
	@Length(min=0, max=1000, message="助力成功应答文本长度不能超过 1000 个字符")
	public String getHelpsArrivalText() {
		return helpsArrivalText;
	}

	public void setHelpsArrivalText(String helpsArrivalText) {
		this.helpsArrivalText = helpsArrivalText;
	}
	
	@Length(min=0, max=500, message="助力成功应答图片长度不能超过 500 个字符")
	public String getHelpsArrivalPic() {
		return helpsArrivalPic;
	}

	public void setHelpsArrivalPic(String helpsArrivalPic) {
		this.helpsArrivalPic = helpsArrivalPic;
	}
	
	@Length(min=0, max=500, message="助力成功应答语音长度不能超过 500 个字符")
	public String getHelpsArrivalVoice() {
		return helpsArrivalVoice;
	}

	public void setHelpsArrivalVoice(String helpsArrivalVoice) {
		this.helpsArrivalVoice = helpsArrivalVoice;
	}
	
	@Length(min=0, max=500, message="助力成功应答视频长度不能超过 500 个字符")
	public String getHelpsArrivalVideo() {
		return helpsArrivalVideo;
	}

	public void setHelpsArrivalVideo(String helpsArrivalVideo) {
		this.helpsArrivalVideo = helpsArrivalVideo;
	}
	
	@Length(min=0, max=500, message="助力成功应答群邀请长度不能超过 500 个字符")
	public String getHelpsArrivalGroupInvitation() {
		return helpsArrivalGroupInvitation;
	}

	public void setHelpsArrivalGroupInvitation(String helpsArrivalGroupInvitation) {
		this.helpsArrivalGroupInvitation = helpsArrivalGroupInvitation;
	}
	
}